home *** CD-ROM | disk | FTP | other *** search
-
-
-
- FFFFSSSSDDDDUUUUMMMMPPPP((((1111MMMM)))) FFFFSSSSDDDDUUUUMMMMPPPP((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- fsdump - file system dumper for rfindd for EFS and XFS
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ccccdddd ////vvvvaaaarrrr////rrrrffffiiiinnnndddddddd;;;; ....////ffffssssdddduuuummmmpppp [----LLLL logfile] [----MMMM minutes] [----QQQQ] [----RRRR] [----UUUU maxrss]
- ----FFFF dumpfile directory
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _f_s_d_u_m_p is applicable to EFS and XFS filesystems.
-
- _f_s_d_u_m_p creates the dddduuuummmmppppffffiiiilllleeee used by _r_f_i_n_d_d(1M) to respond to _r_f_i_n_d(1)
- requests. The dddduuuummmmppppffffiiiilllleeee contains:
-
- inode contents For each allocated inode in the file system mounted
- at ddddiiiirrrreeeeccccttttoooorrrryyyy, _f_s_d_u_m_p stores all the fields from the
- inode header, excluding the extent and reference
- count fields.
-
- directory contents For each directory in the file system that is
- readable by the user "rfindd", _f_s_d_u_m_p stores the
- inode numbers and filenames in that directory.
-
- Quick checksums If the ----QQQQ option is specified, then _f_s_d_u_m_p stores a
- quick checksum of the data contents of each regular
- file in the file system. This checksum only covers
- the first few bytes of each basic block (512 byte
- sector).
-
- RCS information If the ----RRRR option is specified, then _f_s_d_u_m_p stores the
- top-of-trunk version number and date for each file in
- the file system that has a name of the form "RCS/*,v"
- and contains a parsable RCS header. See _r_c_s_f_i_l_e(4)
- for a description of such files.
-
- The following options are accepted by _f_s_d_u_m_p.
-
- ----FFFF _d_u_m_p_f_i_l_e Tells fsdump where to write the data extracted during the
- run.
-
- ----LLLL _l_o_g_f_i_l_e If specified, _f_s_d_u_m_p appends a few lines to the named
- llllooooggggffffiiiilllleeee, containing the date of the run and some statistics
- about the amount of space and time consumed.
-
- ----MMMM _m_i_n_u_t_e_s If specified, limits the number of minutes since _f_s_d_u_m_p
- started that _f_s_d_u_m_p will spend extracting RCS information or
- checksums. If either of the ----QQQQ or ----RRRR options is being used,
- and if _f_s_d_u_m_p is being run frequently, such as every hour,
- then use the ----MMMM option to tell _f_s_d_u_m_p how long it should run,
- before it writes out its partial results, and allows the next
- scheduled run to occur.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- FFFFSSSSDDDDUUUUMMMMPPPP((((1111MMMM)))) FFFFSSSSDDDDUUUUMMMMPPPP((((1111MMMM))))
-
-
-
- ----QQQQ Requests _f_s_d_u_m_p to repeatedly compute a quick checksum on the
- contents of each file. _f_s_d_u_m_p prints a warning message into
- the llllooooggggffffiiiilllleeee of the form:
- >>>>>> File contents corrupted !! :: <file>
- if the checksum changes for a file that was not modified via
- the file system.
-
- ----RRRR Requests _f_s_d_u_m_p to maintain the RCS top-of-trunk revision and
- date for each apparent "RCS/*,v" file.
-
- ----UUUU _m_a_x_r_s_s If specified, limits to mmmmaaaaxxxxrrrrssssssss kilobytes the amount of
- physical memory that this fsdump process can use.
-
- ddddiiiirrrreeeeccccttttoooorrrryyyy must be the directory on which is mounted the EFS or the XFS
- file system to be dumped.
-
- CCCCoooonnnnffffiiiigggguuuurrrraaaattttiiiioooonnnn
- To configure the _r_f_i_n_d services (_r_f_i_n_d_d and _f_s_d_u_m_p) on your system,
- perform the following:
-
- 1) If you want _f_s_d_u_m_p to update all dddduuuummmmppppffffiiiilllleeee's on some schedule other
- than starting at 3 minutes past each hour, then while ssssuuuu'd to
- rfindd's uid, use the ccccrrrroooonnnnttttaaaabbbb(1) command to change the frequency of
- execution of _r_u_n_f_s_d_u_m_p. The following steps can be used to edit
- rfindd's crontab file.
-
- a] su root
-
- b] su - rfindd
-
- c] crontab -l > crontab
-
- d] edit this crontab file
-
- e] crontab crontab
-
- 2) To change the list of file systems to be dumped, edit the file
- ////vvvvaaaarrrr////rrrrffffiiiinnnndddddddd////ffffsssslllliiiisssstttt. By default, the basename of the mount point of
- the file system is used as the dump file name. If the file system
- is "/", then the dump file name is taken as "root" instead. To
- specify a different dump file name, provide that name as the second
- field on its line in ffffsssslllliiiisssstttt. The logfile name is always the dump
- file name with the suffix ".log" added.
-
- 3) To change the options with which _f_s_d_u_m_p is invoked, edit the file
- ////vvvvaaaarrrr////rrrrffffiiiinnnndddddddd////ffffssssooooppppttttiiiioooonnnnssss.
-
- 4) Edit the file /etc/rfind.aliases on each client system that should
- have access to the new rfind server. If only the localhost needs
- access, then this step is not needed.
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- FFFFSSSSDDDDUUUUMMMMPPPP((((1111MMMM)))) FFFFSSSSDDDDUUUUMMMMPPPP((((1111MMMM))))
-
-
-
- SSSSttttrrrraaaatttteeeeggggyyyy
- _f_s_d_u_m_p typically performs the following steps each run:
-
- 1) parse arguments
-
- 2) map ddddiiiirrrreeeeccccttttoooorrrryyyy to file system device
-
- 3) open read-only file system device (requires setuid "root"
- privileges)
-
- 4) open existing dddduuuummmmppppffffiiiilllleeee (if any)
-
- 5) relinquish "root" privileges
-
- 6) redirect stdout/stderr to llllooooggggffffiiiilllleeee (if specified)
-
- 7) determine file system parameters from super block for EFS
- filesystems and XFS syssgi calls for XFS filesystems.
-
- 8) Lock the entire dddduuuummmmppppffffiiiilllleeee, to prevent simultaneous update attempts.
-
- 9) _m_m_a_p(2) existing dddduuuummmmppppffffiiiilllleeee into address space
-
- 10) read inodes from raw disk, one cylinder group at a time for EFS
- filesystems and in numeric order for XFS filesystems.
-
- 11) test mtime, ctime, size and gen of each inode for changes
-
- 12) maintain current uid, gid, atime, nlink and mode for all inodes
-
- 13) discard directory, RCS and quick checksums information for any
- changed inodes
-
- 14) close the file descriptor to the raw file system device
-
- 15) read any changed/new directories using opendir/readdir
-
- 16) rebuild secondary index on filenames
-
- 17) if -R specified and time permits, update RCS information for changed
- "RCS/*,v" files
-
- 18) if -Q specified and time permits, update quick checksums for all
- regular files
-
- 19) write new dddduuuummmmppppffffiiiilllleeee to temporary name
-
- 20) touch the start time of the new dddduuuummmmppppffffiiiilllleeee to the beginning time of
- this run
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- FFFFSSSSDDDDUUUUMMMMPPPP((((1111MMMM)))) FFFFSSSSDDDDUUUUMMMMPPPP((((1111MMMM))))
-
-
-
- 21) update the fsdump.{pag,dir} files
-
- 22) _r_e_n_a_m_e(2) temporary name to specified dddduuuummmmppppffffiiiilllleeee name
-
- FFFFIIIILLLLEEEESSSS
- /etc/config/rfindd _c_h_k_c_o_n_f_i_g(1M) file controlling _f_s_d_u_m_p and
- _r_f_i_n_d_d(1M).
- /var/rfindd/fsdump.dir,
- /var/rfindd/fsdump.pag contain database (in _n_d_b_m(3B) format) of each
- ddddiiiirrrreeeeccccttttoooorrrryyyy and dddduuuummmmppppffffiiiilllleeee in ////vvvvaaaarrrr////rrrrffffiiiinnnndddddddd.
- _f_s_d_u_m_p updates this database each run, and
- _r_f_i_n_d_d uses the database to map the requested
- ddddiiiirrrreeeeccccttttoooorrrryyyy to the dddduuuummmmppppffffiiiilllleeee containing
- information about it.
- /var/rfindd/dddduuuummmmppppffffiiiilllleeee The file system information extracted by
- _f_s_d_u_m_p is stored here for use by _r_f_i_n_d_d(1M).
- The first 12 lines of this file contain an
- ASCII header describing the remaining,
- binary, sections of the file. The dddduuuummmmppppffffiiiilllleeee
- typically requires between 1% and 2% of the
- inuse space of the file system being dumped.
- /var/rfindd/dddduuuummmmppppffffiiiilllleeee.log Conventional name for the llllooooggggffffiiiilllleeee, as
- specified in the ccccrrrroooonnnnttttaaaabbbb invocation of
- _f_s_d_u_m_p.
- /etc/init.d/rfindd The runtime startup script, invoked by
- _i_n_i_t(1M), that starts the _r_f_i_n_d_d(1M) daemon
- process.
- /usr/spool/cron/crontabs/rfindd
- The ccccrrrroooonnnnttttaaaabbbb file that invokes _f_s_d_u_m_p.
- /var/rfindd/rotatelogs Utility invoked from the ccccrrrroooonnnnttttaaaabbbb for
- "rfindd". Each llllooooggggffffiiiilllleeee named on the command
- line of _r_o_t_a_t_e_l_o_g_s is moved to the file
- OOOOLLLLDDDDllllooooggggffffiiiilllleeee.
- /var/rfindd/fslist The list of file systems to be examined by
- _f_s_d_u_m_p(1M). The _r_u_n_f_s_d_u_m_p script uses this
- list.
- /var/rfindd/fsoptions The list of options to be passed when
- invoking the _f_s_d_u_m_p(1M) command. The
- _r_u_n_f_s_d_u_m_p script uses this list.
- /var/rfindd/runfsdump The script, executed from _c_r_o_n once each
- hour, or as otherwise specified, which
- invokes _f_s_d_u_m_p on each file system listed in
- _f_s_l_i_s_t, using the options specified in
- _f_s_o_p_t_i_o_n_s.
- /var/rfindd/passwd.add Utility used by _i_n_s_t exitop to add the user
- "rfindd" to the file ////eeeettttcccc////ppppaaaasssssssswwwwdddd.
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- chkconfig(1M), crontab(1), rfind(1), rfindd(1M).
- mmap(2), rename(2), ndbm(3B), fs(4), rcsfile(4).
-
-
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-